package io.renren.dao;

import io.renren.po.AD;
import io.renren.vo.ADExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ADDao {
    int countByExample(ADExample example);

    int deleteByExample(ADExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(AD record);

    int insertSelective(AD record);

    List<AD> selectByExample(ADExample example);

    AD selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") AD record, @Param("example") ADExample example);

    int updateByExample(@Param("record") AD record, @Param("example") ADExample example);

    int updateByPrimaryKeySelective(AD record);

    int updateByPrimaryKey(AD record);
    
    /**
     * 获取开机广告列表
     * @return
     */
    List<Map<String,Object>> getOpenAdvertList();
}